package com.luoc.service.impl;

import com.luoc.service.Component;

/**
 * @Author: luoc
 * @Date: 2019/9/19 16:08
 */
public class Leaf extends Component {
    @Override
    public void add(Component component) {
        System.out.println("add leaf");
    }

    @Override
    public void remove(Component component) {
        System.out.println("remove leaf");
    }

    @Override
    public Component getChild(int i) {
        return null;
    }

    @Override
    public void operation() {
        System.out.println("leaf operation");
    }
}
